package com.example.common.enums;

import lombok.Getter;

/**
 * 全局异常枚举
 *
 * @author 12071
 */
@Getter
public enum GlobalExceptionEnum {

    SYSTEM_EXCEPTION("000001", "系统异常"),
    PARAM_EXCEPTION("000002", "参数异常"),
    AUTH_FAIL("100002", "鉴权失败"),
    AUTH_INVALID_TOKEN("100003", "无效token"),
    ACCOUNT_IS_DISABLED("100004", "账号被禁用"),

    ;

    private final String code;

    private final String message;

    GlobalExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
